package com.system.function.dao;

import com.system.function.object.Commodity;
import com.system.function.object.Warehouse;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface CommodityDAO {

    //查询全部
    List<Commodity> getAllCommodity(Commodity Commodity);

    //查询全部
    List<Commodity> groupByWarehouse(Commodity Commodity);

    List<Commodity> groupBySupplier(Commodity Commodity);

    List<Commodity> groupByRemarks(Commodity Commodity);

    //查询总数
    int getCountCommodity(Commodity Commodity);
    //查询
    Commodity getCommodity(Commodity Commodity);
    //增加
    int addCommodity(Commodity Commodity);
    //删除
    int delCommodity(Commodity Commodity);
    //修改
    int updateCommodity(Commodity Commodity);

    int countSumCommodity(Commodity Commodity);

}
